package org.tp8.sampleapp.jaxb.paging.dto;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * The Class JaxbPageable.
 */
@XmlRootElement(name = "pageable")
@XmlAccessorType(XmlAccessType.FIELD)
public class JaxbPageable {

	/**
	 * The page number.
	 */
	private int pageNumber;

	/**
	 * The page size.
	 */
	private int pageSize;

	/**
	 * The offset.
	 */
	private int offset;

	/**
	 * The sort.
	 */
	private JaxbSort sort;

	/**
	 * Gets the page number.
	 * 
	 * @return the page number
	 */
	public int getPageNumber() {
		return pageNumber;
	}

	/**
	 * Sets the page number.
	 * 
	 * @param pageNumber
	 *            the new page number
	 */
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	/**
	 * Gets the page size.
	 * 
	 * @return the page size
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * Sets the page size.
	 * 
	 * @param pageSize
	 *            the new page size
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * Gets the offset.
	 * 
	 * @return the offset
	 */
	public int getOffset() {
		return offset;
	}

	/**
	 * Sets the offset.
	 * 
	 * @param offset
	 *            the new offset
	 */
	public void setOffset(int offset) {
		this.offset = offset;
	}

	/**
	 * Sets the sort.
	 * 
	 * @param sort
	 *            the new sort
	 */
	public void setSort(JaxbSort sort) {
		this.sort = sort;
	}

	/**
	 * Gets the sort.
	 * 
	 * @return the sort
	 */
	public JaxbSort getSort() {
		return sort;
	}
}
